﻿using Abp.Domain.Entities.Auditing;
using SportsPlatform.BaseModels;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SportsPlatform.Model.SportBusiness
{
    /// <summary>
    /// 资讯分类实体
    /// </summary>
    [Table("T_B_Category")]
    public class Category : BaseModel
    {
        /// <summary>
        /// 分类名称
        /// </summary>
        [Required]
        [MaxLength(15)]
        public string Name { get; set; }

        /// <summary>   
        /// 所属分类父类标识
        /// </summary>
        public Guid? ParentId { get; set; }

        /// <summary>
        /// 所属商户Id
        /// </summary>
        public Guid? CompanyId { get; set; }

        /// <summary>
        /// 是否启用  1:启用  0:禁用
        /// </summary>
        public bool IsEnable { get; set; }
    }
}
